package com.shipment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shipment.entity.DeliveryOrder;
import com.shipment.model.delivery.DeliveryOrderQuery;
import org.apache.ibatis.annotations.Param;

/**
 * 发货订单Mapper接口
 */
public interface DeliveryOrderMapper extends BaseMapper<DeliveryOrder> {

    /**
     * 自定义分页查询
     *
     * @param page 分页对象
     * @param query 查询条件
     * @return 分页结果
     */
    IPage<DeliveryOrder> selectDeliveryOrderPage(Page<DeliveryOrder> page, @Param("query") DeliveryOrderQuery query);
}
